home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!egnatia.ee.auth.gr
- From: Theodore Chronis <tchronis@egnatia.ee.auth.gr>
- Newsgroups: comp.lang.c
- Subject: file reading help
- Date: Wed, 10 Apr 1996 13:11:44 +0200
- Message-ID: <wd5axYAJAKyZ088yn@egnatia.ee.auth.gr>
- X-NNTP-Posting-Host: egnatia.ee.auth.gr
- X-Mail2News-Path: egnatia.ee.auth.gr
-
- I am learning the basic principles of Information Theory , and i want to
- count the entropy of certain binary files.
- So i need an utilitie that will read any file , storing all bytes in an array
- of length = Size of the file .
- example let suppose that :
- <file test.dat>
- fglhefoghe vjeopjejge gjergjerj erg
-
- Then the C program will do the following procedure:
- a[1]=f
- a[2]=g
- a[3]=l
-